import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useLogsStore = defineStore('logs', () => {
  const logs = ref<string[]>([])
  const getterLogs = computed(() => logs.value)
  const updateLogs = (log: string) => {
    logs.value.push(log)
  }
  return {
    getterLogs,
    updateLogs
  }
})
